<?php
header('Content-Type:text/html;charset=UTF-8');
 require('../control/mysql.php');
//3.sql查询
$usernum = $_POST["usernum"];
$yon = $_POST["yon"];
if($yon=='yes'){

	$sql = "update studentworkinlibrary set stillwork='no' where studentid='$usernum'";
	$res = mysql_query($sql);
	if($res != null){
		echo "已将该学生加入审核通过列表!";
		echo '<a href="short_quit_info.php">';
		echo '点击此处回到缩略信息列表</a>';
		echo '学号为'.$usernum.'的学生已经处于离职状态了';
	}else {
		echo "该学生的离职审核已经通过,请勿重复审核!";
		echo '<a href="short_quit_info.php">';
		echo '点击此处回到缩略信息列表</a>';
	}
}else{
	$url = "short_quit_info.php";
	Header("HTTP/1.1 303 See Other");
	Header("Location: $url");
	exit;
}
?>

<html >
<head >
<meta   http-equiv = "refresh"   content =0; url = <?php echo $link; ?> " >
</head >
<body >
</body >
</html >